package domain;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class JSR303 {

	private Integer id;
	
	@Size(min=3)
	private String username;
	@NotNull
	private String password;
	@NotNull
	private String like;
	
	/*@DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private Date date;
	
	*/
	
	public JSR303() {
		super();
	}

	public JSR303(String username, String password, String like) {
		this.username = username;
		this.password = password;
		this.like = like;
	}

	@Override
	public String toString() {
		return "JSR303 [id=" + id + ", username=" + username + ", password=" + password + ", like=" + like + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLike() {
		return like;
	}

	public void setLike(String like) {
		this.like = like;
	}
}
